package com.example.stock.mapper;

import com.example.stock.model.Consecutive;
import com.example.stock.model.WeekDetail;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface WeekDetailMapper {

    List<WeekDetail> getWeekDetailByStock(String stock);

    List<WeekDetail> getWeekDetailByDate(String date);

    /**
     * 均线排列
     * @param date
     * @return
     */
    List<WeekDetail> getWeekMeanGt(String date);

    /**
     * 获取周下跌最多的股票
     * @param num
     * @return
     */
    List<WeekDetail> getWeekPctMostDecrease(int num);

    List<WeekDetail> getWeekMostPctSum();

    List<String> getDates();

    List<Consecutive> getConsecutiveByStock(String stock);
}
